package cn.edu.demo.pojo.result;

import cn.edu.demo.pojo.Passenger;

public class LoginResult {
    private String u_id;
    private String sex;
    private String name;
    private String username;
    private String idcard;

    public LoginResult() {}
    public LoginResult(Passenger passenger) {
        this.u_id = passenger.getId();
        this.sex = passenger.getSex()==1?"男":"女";
        this.name = passenger.getFullnameP();
        this.username = passenger.getUsername();
        this.idcard = passenger.getPassengerId();
    }
    public LoginResult(String u_id, String sex, String name, String username, String idcard) {
        this.u_id = u_id;
        this.sex = sex;
        this.name = name;
        this.username = username;
        this.idcard = idcard;
    }

    public String getU_id() {
        return u_id;
    }

    public void setU_id(String u_id) {
        this.u_id = u_id;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }
}
